<script setup lang="ts">
  import logo from '@/assets/images/logo.png';
</script>

<template>
  <div class="header">
    <div class="left">
      <el-image class="logo" :src="logo" />
    </div>
    <div class="center">
      <h1>Cherry Moo</h1>
    </div>
    <div class="right">
      <el-avatar :src="logo" />
      <div class="user">樱桃Moo</div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.header {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .left {
    width: 24%;
    .logo {
      width: 24px;
      height: 24px;
    }
  }
  .center h1{
    font-size: 14px;
  }
  .el-avatar{
    width: 20px;
    height: 20px;
    margin-right: 2px;
  }
  .right {
    display: flex;
    align-items: center;
    height: 100%;
    width: 24%;
    justify-content: flex-end;
  }

}


</style>